'''===============================
======for..in...输出九九乘法表1===
==============================='''
for j in range(1,10):
    for i in range(1,j+1):
        print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")
for x in range(80):
    print("=",end="")

'''===============================
======for..in...输出九九乘法表2===
==============================='''
for j in range(9,0,-1):
    for i in range(1,j+1):
        print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")
for x in range(80):
    print("=",end="")
'''===============================
======for..in...输出九九乘法表3===
==============================='''
for j in range(1,10):
    for i in range(9,0,-1):
        if(i>j):
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")
for x in range(80):
    print("=",end="")
'''===============================
======for..in...输出九九乘法表4===
==============================='''
for j in range(9,0,-1):
    for i in range(9,0,-1):
        if(i>j):
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
    print("")
for x in range(80):
    print("=",end="")

'''===============================
======while循环输出九九乘法表1===
==============================='''
j=1
while j<=9:
    i=1
    while i<=j:
        print("{}*{}={:<4}".format(i,j,i*j),end="")
        i+=1
    print("")
    j+=1
x=1
while x<=80:
    print("=",end="")
    x+=1
'''===============================
======while循环输出九九乘法表2===
==============================='''
j=9
while j>=1:
    i=1
    while i<=j:
        print("{}*{}={:<4}".format(i,j,i*j),end="")
        i+=1
    print("")
    j-=1
x=1
while x<=80:
    print("=",end="")
    x+=1
'''===============================
======while循环输出九九乘法表3===
==============================='''
j=1
while j<=9:
    i=9
    while i>=1:
        if i>j:
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
        i-=1
    print("")
    j+=1
x=1
while x<=80:
    print("=",end="")
    x+=1
'''===============================
======while循环输出九九乘法表4===
==============================='''
j=9
while j>=1:
    i=9
    while i>=1:
        if i>j:
            print("        ",end="")
        else:
            print("{}*{}={:<4}".format(i,j,i*j),end="")
        i-=1
    print("")
    j-=1
x=1
while x<=80:
    print("=",end="")
    x+=1
